<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>博和利报表设计器</title>
		<link href="../ext3.0/css/ext-all.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../ext3.0/js/ext-base.js"></script>
		<script type="text/javascript" src="../ext3.0/js/ext-all.js"></script>
		<script type="text/javascript" src="../ppdesinger/localjs/logo.js"></script>
		<script type="text/javascript" src="../ext3.0/js/TabCloseMenu.js"></script>
		<script type="text/javascript" src="../ext3.0/js/FileUploadField.js"></script>
		<link href="../ppdesinger/localjs/local_dragresize.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../ppdesinger/localjs/jquery-1.3.2.js"></script>	
		<script type="text/javascript" src="../ppdesinger/localjs/local_dragresize1.js"></script>	
		<script type="text/javascript" src="../ppdesinger/localjs/local_extendDrag.js"></script>
		<script type="text/javascript" src="../ppdesinger/localjs/local_PpObject.js"></script>
		<script type="text/javascript" src="../ppdesinger/localjs/local_PpObjectFunction.js"></script>
		<script type="text/javascript" src="../ppdesinger/localjs/local_context.js"></script>
		<script type="text/javascript" src="../ppdesinger/localjs/local_Pppro.js"></script>
		<script type="text/javascript" src="../ppdesinger/localjs/local_PpObjectCreateNode.js"></script>
	</head>
	<body>
		<div id="content"></div>
		<script>
		//-------------------------屏蔽IE自带右键功能-------------------	
		
		document.oncontextmenu = function nocontextmenu() 
		{
			return false;
		}
		
		//-------------------------屏蔽Firefox自带右键功能-------------------
		
		document.onclick = function norightclick(e) 
		{
			if (!e)
				e = window.event;
			if (e.button == 2) 
			{
					e.cancelBubble = true
					e.returnValue = false;
					iffoxcandel = true;
					return false;
			}
		}
		Ext.onReady(function(){
		var dragresize = new PPdesinger({
			title:"盼盼设计器",
			width:1200,
			height:800,
			howCreateForm:{
				isNewForm:false,
				isRedisplayForm:false,
				isModifyForm:true	//true,表示进入修改页面
			},
			toolbar:{
				新建:true,
				checkbox:true,
				button:true,
				radiobox:true,
				label:true,
				textfield:true,
				numberfield:true,
				textarea:true,
				datefield:true,
				linex:true,
				liney:true,
				imag:true,
				htmleditor:true
			},
			 menu:
				{
					插入表格:true,
					字体:true,
					颜色:true,
					字体:true,
					字形:true,
					字号:true,
					标尺线:true,
					打开本地:true,
					另存本地:true,
					预览:true
				},
				contextmenu:
				{
					删除:true,
					左对齐:true,
					上对齐:true,
					下对齐:true,
					右对齐:true,
					水平平均:true,
					垂直平均:true,
					自动求和:true
				},
				formContexmenu:
				{
					全选:true,
					黏贴:true
				}
		}); 
		// 可以将 xxxmmmlll  改为要的值
		var xxxmmmlll = '<?xml version="1.0" encoding="UTF-8"?><form title="title" formwidth="1273" formheight="1123"><item i_id="cfz_label0" i_type="label" i_x="186" i_y="111" i_width="100" i_height="24" i_style="{color:&quot;000000&quot;,fontSize:&quot;12px&quot;, fontWeight:&quot;normal&quot;,fontFamily:&quot;宋体&quot;}" i_value="新标签"/><item i_id="cfz_numberfield1" i_code="code1" i_type="numberfield" i_x="328" i_y="144" i_tabseq="1" i_width="100" i_height="24" i_value="" i_style="{color:&quot;#000&quot;,fontSize:&quot;12px&quot;, fontWeight:&quot;normal&quot;,fontFamily:&quot;宋体&quot;}" i_length="20" i_desplaystyle="方框" i_allowblank="false" i_readonly="false" i_negative="true" i_accuracy="2"/></form>';
		dragresize.windowPanel.render("mydiv");
		dragresize.newForm("title",1111,777,xxxmmmlll,"dfdf");

});
     	</script>
		<div id="mydiv"></div>
	</body>
</html>
